package com.huike.business.mapper;

import java.util.List;
import com.huike.business.domain.TbBusinessTrackRecord;
import org.apache.ibatis.annotations.Param;

/**
 * 商机跟进记录Mapper接口
 * @date 2021-04-28
 */
public interface TbBusinessTrackRecordMapper {

    // 新增商机跟进记录
    void insertTbBusinessTrackRecord(TbBusinessTrackRecord tbBusinessTrackRecord);


    // 查询商机跟进记录列表
    List<TbBusinessTrackRecord> listByBusinessId(Long id);


    // 获取keys
    String getKeyByKeyItem(int key);

    // 退回公海
    void back(@Param("id") Long id, @Param("reason") String reason);

    // 获取原因
    String getKeyByDictValue(String reason);

}